/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package q2;

import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author c0909h1200
 */
public class Test {
    public static void main(String [] agrs){
        //init class Data
        Data data = new Data();

        //run again. forever
        while (true) {
            //get random
            data.getRandom();

            //display name correspond
            data.displayName();

            //sleep
            try {
                Thread.sleep(500);
            } catch (InterruptedException ex) {
       
            }
        }

        }
}
